package com.ruoyi.driver.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.driver.mapper.DriverLicensePhotosMapper;
import com.ruoyi.driver.domain.DriverLicensePhotos;
import com.ruoyi.driver.service.IDriverLicensePhotosService;

/**
 * 证件照Service业务层处理
 * 
 * @author yyj
 * @date 2025-08-17
 */
@Service
public class DriverLicensePhotosServiceImpl implements IDriverLicensePhotosService 
{
    @Autowired
    private DriverLicensePhotosMapper driverLicensePhotosMapper;

    /**
     * 查询证件照
     * 
     * @param id 证件照主键
     * @return 证件照
     */
    @Override
    public DriverLicensePhotos selectDriverLicensePhotosById(Long id)
    {
        return driverLicensePhotosMapper.selectDriverLicensePhotosById(id);
    }

    /**
     * 查询证件照列表
     * 
     * @param driverLicensePhotos 证件照
     * @return 证件照
     */
    @Override
    public List<DriverLicensePhotos> selectDriverLicensePhotosList(DriverLicensePhotos driverLicensePhotos)
    {
        return driverLicensePhotosMapper.selectDriverLicensePhotosList(driverLicensePhotos);
    }

    /**
     * 新增证件照
     * 
     * @param driverLicensePhotos 证件照
     * @return 结果
     */
    @Override
    public int insertDriverLicensePhotos(DriverLicensePhotos driverLicensePhotos)
    {
        return driverLicensePhotosMapper.insertDriverLicensePhotos(driverLicensePhotos);
    }

    /**
     * 修改证件照
     * 
     * @param driverLicensePhotos 证件照
     * @return 结果
     */
    @Override
    public int updateDriverLicensePhotos(DriverLicensePhotos driverLicensePhotos)
    {
        return driverLicensePhotosMapper.updateDriverLicensePhotos(driverLicensePhotos);
    }

    /**
     * 批量删除证件照
     * 
     * @param ids 需要删除的证件照主键
     * @return 结果
     */
    @Override
    public int deleteDriverLicensePhotosByIds(Long[] ids)
    {
        return driverLicensePhotosMapper.deleteDriverLicensePhotosByIds(ids);
    }

    /**
     * 删除证件照信息
     * 
     * @param id 证件照主键
     * @return 结果
     */
    @Override
    public int deleteDriverLicensePhotosById(Long id)
    {
        return driverLicensePhotosMapper.deleteDriverLicensePhotosById(id);
    }
}
